#define _CRT_SECURE_NO_WARNINGS 1
#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING 2
#include"util.h"
#include"data.h"
#include"cloud.h"
#define BACK_DIR "backup"
void testutil()
{
	cloud::Fileutil fu("./");
	std::vector<std::string> vs;
	fu.ScanDirectory(&vs);
	for (auto& e : vs)
	{
		std::cout << e << std::endl;
	}
}
void testdata()
{
	cloud::Fileutil fu("./");
	std::vector<std::string> vs;
	fu.ScanDirectory(&vs);
	cloud::DataManager* data = cloud::DataManager::GetInstance();
	for (auto& e : vs)
	{
		data->Insert(e, "....");
	}
	std::string value;
	data->GetOneBykey(".\\data.h",&value);
	std::cout << "value " << value << std::endl;
}
void testcloud()
{
	cloud::BackInfo info(BACK_DIR);
	info.RunModel();
}
int main()
{
	testcloud();
	return 0;
}